HTMLify
style.css
Views: 23 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | html, body { height: 100%; min-height: 100%; font-family: "Quicksand", sans-serif; } body { background-color: #e7eaef; } *, *::after, *::before { box-sizing: border-box; } .container { width: 100%; height: 100%; display: flex; justify-content: center; background-color: #e7eaef; background-image: linear-gradient(145deg, #e7eaef 0%, #ffe7d1 100%); } .container::before { content: ""; position: fixed; width: 700px; height: 1500px; border-radius: 50000px; background-color: #F6C89F; transform: rotate(-45deg) translate(40%, -55%); } .phone { width: 400px; height: 100vh; border-radius: 50px; border: 7px solid white; transform: translateY(-40%); background-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 10px; } .navigation { width: 100%; background-color: white; border-radius: 50px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } .navigation__list { list-style: none; width: 100%; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0; } .navigation__item { perspective: 100px; } .navigation__link { font-size: 12px; text-decoration: none; color: #c3cad6; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 70px; padding: 20px 30px; overflow: hidden; position: relative; outline: none; } .navigation__link::before { content: ""; width: 4px; height: 4px; border-radius: 15px; background-color: #F6C89F; position: absolute; transform: translateY(60px) scale(0.4); transition: all 0.35s cubic-bezier(0, 0.51, 0, 0.99); opacity: 0; } .navigation__icon { transition: all 0.35s ease; will-change: opacity, transform, background-color; } .navigation__text { position: absolute; transform: translateY(60px) skewY(-20deg); transform-origin: left bottom; color: #4b8e8d; font-weight: 700; opacity: 0; transition: all 0.35s ease; will-change: opacity, transform, background-color; } .navigation__link.active .navigation__icon { transform: translateY(-60px) rotateX(90deg) scale(0.4) skewY(-30deg); opacity: 0; } .navigation__link.active .navigation__text { opacity: 1; transform: translateY(-3px) skewY(0deg); } .navigation__link.active::before { transform: translateY(12px) scale(1); transition: all 0.35s cubic-bezier(0, 0.51, 0, 0.99) 0.2s; opacity: 1; } @keyframes dotAnime { 0% { transform: translateY(60px) scale(0.4); opacity: 0; } 75% { transform: translateY(-3px) scale(1); opacity: 1; } to { transform: translateY(12px); opacity: 1; } } @keyframes textAnime { from { transform-origin: right center; transform: skewY(0) translateY(0); } 25% { transform: skewY(0) translateY(0); } 60% { transform: skewY(-12deg) translateY(-22px); } to { transform: skewY(0) translateY(-3px); } } |